﻿ @{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Admin_Layout.cshtml";
    ViewBag.Controller = "place";
    ViewBag.Cate = "Địa Danh";
    
    var Order = "asc";

    if (Request.QueryString["sort_type"] == "asc")
    {
        Order = "desc";
    }else{
        Order = "asc";
    }
}

<!--Tabs-->
<div class="tabs">
    <span class="item"><a href="/admin" title="">Bảng điều khiển</a></span>
    <span class="icon-arrow">&gt;</span>
    <span class="item">@ViewBag.Cate</span>
</div>
<!--End Tabs-->

<!--Container-->
<div class="container">
    <form class="table-data" method="post">
        <div class="list-btn">
            <input type="text" id="_search" name="name" value="" placeholder="Tìm kiếm" />
            <a href="/admin/@ViewBag.Controller/update" class="btn btn-success" title="Thêm">Thêm</a>
            <input type="submit" name="delete" id="_btn_del" class="btn btn-danger" value="Xóa" />
        </div>
        <div class="clearAll"></div>
        <div class="notice"><span class="close-notice icon-remove"></span></div>
		<div class="title"><span class="icon-list-alt"></span>@ViewBag.Cate<span id="content-loading"></span></div>
		<div class="error"></div>
		<div class="box-field">
            <table class="altrowstable" id="alternatecolor">
                <thead>
                <tr>
                    <th class="cbox"><input type="checkbox" id="CheckAll" /></th>
                    <th><a class="name" href="/admin/@ViewBag.Controller?sort_by=fullname&sort_type=@Order" title="Tên địa danh">Tên địa danh</a></th>
                    <th><a class="address" href="/admin/@ViewBag.Controller?sort_by=email&sort_type=@Order" title="Địa chỉ">Địa chỉ</a></th>
                    <th><a class="status" href="/admin/@ViewBag.Controller?sort_by=status&sort_type=@Order" title="Status">Status</a></th>
                    <th><a class="changed" href="/admin/@ViewBag.Controller?sort_by=created&sort_type=@Order" title="Ngày cập nhật">Ngày cập nhật</a></th>
                </tr>
                </thead>
                <tbody id="_loadContent">
                    <!--Dữ Liệu Load AJAX Ở Đây-->
                </tbody>
                <tr>
                    <td colspan="7"  style="text-align: center;">
						<div class="pagination"></div>
                    </td>
                </tr>
            </table>
		</div>
	</form>
</div>
<!--End Container-->